aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenNamespaceFieldStoreTests]/[method:namespaceFieldStorePopsFromStackAndUpdatesFieldOnNamespace(org.shedla...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-27 23:43:30 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-27 23:43:30 +0100
commit25f05f12773ea5710941822ce0e168325cc7ce14 (patch)
tree3f3632b394a7ec11421bb96d71e123b908c80868 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenNamespaceFieldStoreTests]/[method:namespaceFieldStorePopsFromStackAndUpdatesFieldOnNamespace(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent83fcac31c97820f2a29ba7766161a4baf1746b8e (diff)
Add WASM code gen for namespace field stores
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenNamespaceFieldStoreTests]/[method:namespaceFieldStorePopsFromStackAndUpdatesFieldOnNamespace(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenNamespaceFieldStoreTests]/[method:namespaceFieldStorePopsFromStackAndUpdatesFieldOnNamespace(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected42
1 files changed, 42 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenNamespaceFieldStoreTests]/[method:namespaceFieldStorePopsFromStackAndUpdatesFieldOnNamespace(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenNamespaceFieldStoreTests]/[method:namespaceFieldStorePopsFromStackAndUpdatesFieldOnNamespace(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
new file mode 100644
index 00000000..141c48ad
--- /dev/null
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenNamespaceFieldStoreTests]/[method:namespaceFieldStorePopsFromStackAndUpdatesFieldOnNamespace(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -0,0 +1,42 @@
+
+module.wasm: file format wasm 0x1
+
+Section Details:
+
+Type[1]:
+ - type[0] () -> nil
+Import[2]:
+ - table[0] type=funcref initial=0 <- env.__indirect_function_table
+ - memory[0] pages: initial=12 <- env.__linear_memory
+Function[1]:
+ - func[0] sig=0 <f>
+Code[1]:
+ - func[0] size=17 <f>
+Data[1]:
+ - segment[0] <.data> memory=0 size=12 - init i32=0
+ - 0000000: 0000 0000 0000 0000 0000 0000 ............
+Custom:
+ - name: "name"
+ - func[0] <f>
+ - func[0] local[0] <fieldValue__y__0>
+Custom:
+ - name: "linking"
+ - segment info [count=1]
+ - 0: .data p2align=2 [ ]
+ - symbol table [count=2]
+ - 0: F <f> func=0 [ binding=global vis=default ]
+ - 1: D <shed__namespace__Example_Project> segment=0 offset=0 size=12 [ binding=global vis=default ]
+Custom:
+ - name: "reloc.CODE"
+ - relocations for section: 3 (Code) [1]
+ - R_WASM_MEMORY_ADDR_SLEB offset=0x00000c(file=0x00006c) symbol=1 <shed__namespace__Example_Project>
+
+Code Disassembly:
+
+000066 func[0] <f>:
+ 000067: 01 7f | local[0] type=i32
+ 000069: 21 00 | local.set 0 <fieldValue__y__0>
+ 00006b: 41 80 80 80 80 00 | i32.const 0
+ 000071: 20 00 | local.get 0 <fieldValue__y__0>
+ 000073: 36 02 04 | i32.store 2 4
+ 000076: 0b | end \ No newline at end of file